import request from '../utils/request';



// 登录接口
export const login = data => {
    return request({
        url: '/api/cxkj-travel-user-center/sys/bizUser/appLogin',
        method: 'post',
        data
    });
}
// 巡检用户管理
export const InspectionUser = query => {
    return request({
        url: '/api/cxkj-travel-parking/inspectionUserParking/list',
        method: 'get',
        params: query
    });
};

// 巡查上报
export const InspectionReport  = query => {
    return request({
        url: '/api/cxkj-travel-parking/inspectionReports/list',
        method: 'get',
        params: query
    });
};


// 巡检考核
export const InspectionAssessment  = query => {
    return request({
        url: '/api/cxkj-travel-parking/inspectionAssessment/list',
        method: 'get',
        params: query
    });
};

// 巡检员考勤管理
export const InspectionWorkTime  = query => {
    return request({
        url: '/api/cxkj-travel-parking/inspectionStaffAttendance/list',
        method: 'get',
        params: query
    });
};

// 周期轮班设置对象功能
export const InspectionCycleShift  = query => {
    return request({
        url: '/api/cxkj-travel-parking/inspectionPeriodSetting/list',
        method: 'get',
        params: query
    });
};

// 巡检日常轨迹对象功能接口
export const InspectionDayTrajectory  = query => {
    return request({
        url: '/api/cxkj-travel-parking/inspectionDailyTracks/list',
        method: 'get',
        params: query
    });
};

// 巡查操作日志
export const InspectionDayLog  = query => {
    return request({
        url: '/api/cxkj-travel-parking/inspectionOperationLog/list',
        method: 'get',
        params: query
    });
};


// 催缴记录对象功能接口
export const InspectionCallRecord  = query => {
    return request({
        url: '/api/cxkj-travel-parking/inspectionCollectionRecord/page',
        method: 'get',
        params: query
    });
};

// 班次规则 打卡规则
export const inspectionShiftSetting  = query => {
    return request({
        url: '/api/cxkj-travel-parking/inspectionShiftSetting/list',
        method: 'get',
        params: query
    });
};

// 工单派遣对象接口
export const inspectionWorkOrderDispatch = query => {
    return request({
        url: '/api/cxkj-travel-parking/inspectionWorkOrderDispatch/list',
        method: 'get',
        params: query
    });
};

// app版本升级查询
export const inspectionAppUpload = query => {
    return request({
        url: '/api/cxkj-travel-parking/inspectionAppVersionUpdate/list',
        method: 'get',
        params: query
    });
};
